// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 

package com.nnee.p_pr.p_activity.p_view;

import android.view.View;
import android.widget.Adapter;
import android.widget.FrameLayout;

// Referenced classes of package com.nnee.p_pr.p_activity.view:
//            cls_FlingGallery, bp, ah, s

public class cls_a
{

    public cls_a(cls_FlingGallery flinggallery, int i, FrameLayout framelayout)
    {
        a = cls_FlingGallery;
        super();
        d = null;
        e = null;
        f = null;
        b = i;
        c = framelayout;
        d = new FrameLayout(cls_FlingGallery.i(cls_FlingGallery));
        d.setLayoutParams(new android.widget.LinearLayout.LayoutParams(-1, -1));
        e = new FrameLayout(cls_FlingGallery.i(cls_FlingGallery));
        e.setLayoutParams(new android.widget.FrameLayout.LayoutParams(-1, -1));
        c.addView(e);
    }

    public Object a(int i, int j, Object obj)
    {
        Object obj1;
        if(f instanceof cls_bp)
            obj1 = ((bp)f).a(i, j, obj);
        else
            obj1 = null;
        return obj1;
    }

    public void a()
    {
        if(d != null)
        {
            d.removeAllViews();
            d = null;
        }
        if(e != null)
        {
            e.removeAllViews();
            e = null;
        }
        if(f != null)
            f = null;
    }

    public void a(int i)
    {
        if(f instanceof cls_bp)
            ((bp)f).h(i);
    }

    public void a(int i, int j)
    {
        if(f instanceof cls_bp)
            ((bp)f).a(i, j);
    }

    public void a(int i, int j, int k)
    {
        e.scrollTo(i + cls_FlingGallery.a(a, b, k), j);
    }

    public void a(int i, boolean flag)
    {
        if(f instanceof cls_bp)
            ((bp)f).a(i, flag);
    }

    public void a(s s)
    {
        if(s != null && (f instanceof cls_ah))
            ((ah)f).a(s);
    }

    public boolean a(String s)
    {
        boolean flag;
        if(f instanceof cls_bp)
            flag = ((bp)f).a(s);
        else
            flag = false;
        return flag;
    }

    public int b()
    {
        return g;
    }

    /**
     * @deprecated Method b is deprecated
     */

    public void b(int i)
    {
        this;
        JVM INSTR monitorenter ;
        if(f instanceof cls_bp)
            ((bp)f).g(i);
        this;
        JVM INSTR monitorexit ;
        return;
        Exception exception;
        exception;
        throw exception;
    }

    public boolean b(int i, int j, Object obj)
    {
        boolean flag;
        if(f instanceof cls_bp)
            flag = ((bp)f).b(i, j, obj);
        else
            flag = false;
        return flag;
    }

    public boolean b(String s)
    {
        boolean flag;
        if(f instanceof cls_bp)
            flag = ((bp)f).b(s);
        else
            flag = false;
        return flag;
    }

    public int c()
    {
        return e.getScrollX();
    }

    public void c(int i)
    {
        if(f instanceof cls_bp)
            ((bp)f).i(i);
    }

    public void d()
    {
        e.requestFocus();
    }

    public void d(int i)
    {
        if(f instanceof cls_bp)
            ((bp)f).e(i);
    }

    /**
     * @deprecated Method e is deprecated
     */

    public void e(int i)
    {
        this;
        JVM INSTR monitorenter ;
        View view;
        g = i;
        view = f;
        if(cls_FlingGallery.j(a) == null) goto _L2; else goto _L1
_L1:
        if(i < a.h() || i > a.i())
            break MISSING_BLOCK_LABEL_206;
        if(f != d) goto _L4; else goto _L3
_L3:
        f = cls_FlingGallery.j(a).getView(i, null, e);
_L2:
        if(view != f)
        {
            if(view != null)
                e.removeView(view);
            if(f != null)
                e.addView(f, new android.widget.FrameLayout.LayoutParams(-1, -1));
        }
        if(f != null)
        {
            a(cls_FlingGallery.k(a), b);
            a(cls_FlingGallery.l(a));
            b(cls_FlingGallery.m(a));
        }
        this;
        JVM INSTR monitorexit ;
        return;
_L4:
        f = cls_FlingGallery.j(a).getView(i, f, e);
          goto _L2
        Exception exception;
        exception;
        throw exception;
        f = d;
          goto _L2
    }

    final cls_FlingGallery a;
    private int b;
    private FrameLayout c;
    private FrameLayout d;
    private FrameLayout e;
    private View f;
    private int g;
}
